package org.dromara.system.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.system.domain.SimMallOrder;
import org.dromara.system.domain.bo.SimMallOrderBo;
import org.dromara.system.domain.vo.SimMallOrderVo;

import java.util.List;

/**
 * 商城订单Mapper接口
 *
 * @author Lion Li
 * @date 2025-08-15
 */
public interface SimMallOrderMapper extends BaseMapperPlus<SimMallOrder, SimMallOrderVo> {

    IPage<SimMallOrderVo> findAll(IPage<SimMallOrderVo> page, @Param("query") SimMallOrderBo bo);

    List<SimMallOrderVo> findUpgradeOrder(List<Long> userIds);

}
